<!--
// Get the HTTP Object
function getHTTPObject(){
    if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
    else if (window.XMLHttpRequest) return new XMLHttpRequest();
    else {
	alert("Your browser does not support AJAX.");
	return null;
    }
}
function setOutput(id){
	if(httpObject.readyState==4) {
		document.getElementById('voteajax').innerHTML = httpObject.responseText;
	} 
}
function vote(qid,v){
    httpObject = getHTTPObject();
    if (httpObject != null) {
	httpObject.onreadystatechange = function () {
		if(httpObject.readyState==4) {
			document.getElementById('voteajax' + qid).innerHTML = httpObject.responseText;
	        }

	
	
	};
	httpObject.open("GET", "ajax.php?aid="
                        +qid
                        +"&vote="
                        +v, true);
	httpObject.send(null);
    }
}
var httpObject = null;
//-->
